package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WarningReceiverMapper;
import com.ruoyi.system.domain.WarningReceiver;
import com.ruoyi.system.service.IWarningReceiverService;

/**
 * 预警接收人Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-06-20
 */
@Service
public class WarningReceiverServiceImpl implements IWarningReceiverService 
{
    @Autowired
    private WarningReceiverMapper warningReceiverMapper;

    /**
     * 查询预警接收人
     * 
     * @param id 预警接收人ID
     * @return 预警接收人
     */
    @Override
    public WarningReceiver selectWarningReceiverById(Long id)
    {
        return warningReceiverMapper.selectWarningReceiverById(id);
    }

    /**
     * 查询预警接收人列表
     * 
     * @param warningReceiver 预警接收人
     * @return 预警接收人
     */
    @Override
    public List<WarningReceiver> selectWarningReceiverList(WarningReceiver warningReceiver)
    {
        return warningReceiverMapper.selectWarningReceiverList(warningReceiver);
    }

    /**
     * 新增预警接收人
     * 
     * @param warningReceiver 预警接收人
     * @return 结果
     */
    @Override
    public int insertWarningReceiver(WarningReceiver warningReceiver)
    {
        return warningReceiverMapper.insertWarningReceiver(warningReceiver);
    }

    /**
     * 修改预警接收人
     * 
     * @param warningReceiver 预警接收人
     * @return 结果
     */
    @Override
    public int updateWarningReceiver(WarningReceiver warningReceiver)
    {
        return warningReceiverMapper.updateWarningReceiver(warningReceiver);
    }

    /**
     * 批量删除预警接收人
     * 
     * @param ids 需要删除的预警接收人ID
     * @return 结果
     */
    @Override
    public int deleteWarningReceiverByIds(Long[] ids)
    {
        return warningReceiverMapper.deleteWarningReceiverByIds(ids);
    }

    /**
     * 删除预警接收人信息
     * 
     * @param id 预警接收人ID
     * @return 结果
     */
    @Override
    public int deleteWarningReceiverById(Long id)
    {
        return warningReceiverMapper.deleteWarningReceiverById(id);
    }
}
